{% extends "base.html" %} {% block title %}NGO Expense & Treasury Management - NGO Foundation Admin{% endblock %} {% block body_class %}admin-portal-active{% endblock %} {% block content %}
{% if current_user.role and current_user.role.role_name == 'Finance' %} {% include "finance/_finance_sidebar.html" %} {% else %} {% include "admin/_admin_sidebar.html" %} {% endif %}
{% set topbar_title = 'Operational Expenses & Treasury' %} {% set topbar_subtitle = 'Home / Financial Accounts / Expenses & Balance' %} {% include "admin/_admin_topbar.html" %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Total Income (Donations)
₹{{ '{:,.2f}'.format(total_income|default(0.0)) }}
Reconciled donor funds
Total Expenses
₹{{ '{:,.2f}'.format(total_expenses|default(0.0)) }}
{{ total_count|default(0) }} audited vouchers
Net Treasury Balance
{% if net_balance < 0 %} -₹{{ '{:,.2f}'.format(net_balance|abs) }} {% else %} ₹{{ '{:,.2f}'.format(net_balance) }} {% endif %}
{% if net_balance >= 0 %} Healthy treasury reserve {% else %} Deficit expenditure {% endif %}
Vouchers Registered
{{ total_count|default(0) }}
{% if category_breakdown %}
Expenditure Breakdown by Category
{% for cat_name, cat_data in category_breakdown.items() %}
{{ cat_name }} {{ cat_data.count }} voucher(s)
₹{{ '{:,.2f}'.format(cat_data.total) }}
{% endfor %}
{% endif %}
Showing {{ expenses|length }} expense vouchers matching criteria
{% if expenses %} {% for item in expenses %} {% endfor %} {% else %} {% endif %}
Voucher No. Date Category Payee / Vendor Amount (INR) Mode Purpose / Justification Bill / Invoice Audit Status Actions
{{ item.voucher_no }} {{ item.expense_date.strftime('%d-%b-%Y') if item.expense_date else 'N/A' }} {{ item.category }} {{ item.vendor_name or 'N/A' }} ₹{{ '{:,.2f}'.format(item.amount) }} {{ item.payment_mode or 'Cash' }} {{ item.purpose }} {% if item.bill_file %} View Bill {% else %} No file {% endif %} {% if item.status == 'Audited' %} Audited {% elif item.status == 'Approved' %} Approved {% else %} Pending Audit {% endif %}
No operational expenses found.

Record your first official expenditure voucher with category and receipt.

{% include "admin/_admin_modals.html" %} {% endblock %}